﻿<%@ Page Language="C#"  MasterPageFile="~/templates/template.Master" AutoEventWireup="true" CodeBehind="profile.aspx.cs" Inherits="GesWork.user.profile" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
         
    
     
         <cc1:TabContainer ID="tabcont" runat="server" Width="600px" 
    ActiveTabIndex="0">
         <cc1:TabPanel runat="server" ID="tabUser"  HeaderText="Usuario"><ContentTemplate>
         
         
         <br/>
        <b>Usuario: </b><asp:LoginName ID="LoginName1" runat="server" />  
        <br/>
        <asp:ChangePassword ID="ChangePassword1" runat="server" >
            <ChangePasswordTemplate>
                <table border="0" cellpadding="1" cellspacing="0" 
                    style="border-collapse:collapse;">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0">
                                <tr class="tblHeader">
                                    <td align="center" colspan="2">
                                        Cambiar contraseña</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                            AssociatedControlID="CurrentPassword">Contraseña actual:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                            ControlToValidate="CurrentPassword" ErrorMessage="Password is required." 
                                            ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="NewPasswordLabel" runat="server" 
                                            AssociatedControlID="NewPassword">Nueva contraseña:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                            ControlToValidate="NewPassword" ErrorMessage="New Password is required." 
                                            ToolTip="New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                            AssociatedControlID="ConfirmNewPassword">Confirma nueva contraseña:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                            ControlToValidate="ConfirmNewPassword" 
                                            ErrorMessage="La confirmacion de la nueva contraseña es requerida." 
                                            ToolTip="La confirmacion de la nueva contraseña es requerida." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                            ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                            Display="Dynamic" 
                                            ErrorMessage="La nueva contraseña y su confirmacion han de ser iguales." 
                                            ValidationGroup="ChangePassword1"></asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color:Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                            CommandName="ChangePassword" Text="Cambiar contraseña" 
                                            ValidationGroup="ChangePassword1" />
                                    </td>
                                    <td>
                                        <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                            CommandName="Cancel" Text="Cancelar" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ChangePasswordTemplate>
        </asp:ChangePassword>
</ContentTemplate>
</cc1:TabPanel>

<cc1:TabPanel runat="server" ID="TabPanel2"  HeaderText="Nuevo Usuario"><ContentTemplate>


      <asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
          <WizardSteps>
              <asp:CreateUserWizardStep runat="server" Title="Agregar usuario" >
                  <ContentTemplate>
                      <table border="0">
                          <tr class="tblHeader">
                              <td align="center" colspan="2">
                                  Crear una nueva cuenta de usuario</td>
                          </tr>
                          <tr>
                              <td align="right">
                                  <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label>
                              </td>
                              <td>
                              <br /><br /><br />
                                  <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                      ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                      ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="right">
                              <br /><br /><br />
                                  <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Contraseña:</asp:Label>
                              </td>
                              <td>
                              <br /><br /><br />
                                  <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                      ControlToValidate="Password" ErrorMessage="Password is required." 
                                      ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="right">
                                  <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                      AssociatedControlID="ConfirmPassword">Confirma contraseña:</asp:Label>
                              </td>
                              <td>
                                  <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                      ControlToValidate="ConfirmPassword" 
                                      ErrorMessage="Confirm Password is required." 
                                      ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="right">
                              
                                  <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                              </td>
                              <td>
                              <br /><br /><br />
                                  <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                      ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                      ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="right">
                               
                                  <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Pregunta secreta:</asp:Label>
                              </td>
                                
                              <td>
                               <br /><br /><br />
                                  <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                      ControlToValidate="Question" ErrorMessage="Security question is required." 
                                      ToolTip="Security question is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="right">
                              
                                  <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Respuesta secreta:</asp:Label>
                              </td>
                              <td>
                                 <br /><br /><br />
                                  <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                      ControlToValidate="Answer" ErrorMessage="Security answer is required." 
                                      ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="center" colspan="2">
                                  <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                      ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                      Display="Dynamic" 
                                      ErrorMessage="The Password and Confirmation Password must match." 
                                      ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                              </td>
                          </tr>
                          <tr>
                              <td align="center" colspan="2" style="color:Red;">
                                  <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                              </td>
                          </tr>
                      </table>
                  </ContentTemplate>
              </asp:CreateUserWizardStep>
              <asp:CompleteWizardStep runat="server" Title="Completado" >
                  <ContentTemplate>
                      <table border="0">
                          <tr>
                              <td align="center">
                                  Completado</td>
                          </tr>
                          <tr>
                              <td>
                                  La cuenta ha sido creada correctamente</td>
                          </tr>
                          <tr>
                              <td align="right">
                                  <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" 
                                      CommandName="Continue" Text="Continue" ValidationGroup="CreateUserWizard1" />
                              </td>
                          </tr>
                      </table>
                  </ContentTemplate>
              </asp:CompleteWizardStep>
          </WizardSteps>
      </asp:CreateUserWizard>
      
      
     
      </ContentTemplate>
</cc1:TabPanel>
         </cc1:TabContainer>
         



    </asp:content>

<asp:Content ID="Content1" runat="server" contentplaceholderid="head">

    
</asp:Content>


